'use strict';

module.exports = appInfo => {
  const config = exports = {};

  // use for cookie sign key, should change to your own and keep security
  config.keys = appInfo.name + '_1512359278905_1714';

  // add your config here

  config.middleware = [ 'wechat' ];
  config.security = {
    csrf: {
      enable: false,
    },
  };
  config.weChat = {
    token: 'zhoucanyu13616060176',
    appid: 'wx04228815b1ee9dd4',
    encodingAESKey: '00be4usPwGfm96Sm1XOmwGy75HKNJQl91l4zTFt62K1',
    appSecret: 'aa7cb9ed61fb0663a7d1ef6631066277',
  };

  config.mailOptions = {
    host: 'smtp.exmail.qq.com', // 主机
    secure: true, // 使用 SSL
    port: 465, // SMTP 端口
    auth: {
      user: 'devchainmail@meng.im', // 发送邮箱
      pass: 's0v7DXBlB2YvUSHi', // 邮箱密码
    },
  };
  // 发送接收邮箱设置
  config.sendOptions = {
    from: 'devchainmail@meng.im', // 发送者
    to: '2595488832@qq.com', // 接受者,可以同时发送多个,以逗号隔开
  };

  // config.weChat = {
  //   // token: 'zhoucanyu13616060176',
  //   appid: 'wx181ecbf5c3d04478',
  //   // encodingAESKey: '00be4usPwGfm96Sm1XOmwGy75HKNJQl91l4zTFt62K1',
  //   appSecret: '020e9ba14ddc5e5efd08fc4a4f50628e',
  // };
  return config;
};
